how to develop post rest api in a spring application